﻿using System;
using System.Collections.ObjectModel;

namespace SilverCrmSoap.CrmSdk
{
    public partial class AppointmentRequest
    {
        public AppointmentRequest()
        {
            // AppointmentRequest requires these values not be null.
            Objectives = new ObservableCollection<ObjectiveRelation>();
            RequiredResources = new ObservableCollection<RequiredResource>();
            AppointmentsToIgnore = new ObservableCollection<AppointmentsToIgnore>();
            Constraints = new ObservableCollection<ConstraintRelation>();
            Sites = new ObservableCollection<Guid>();
            Direction = SearchDirection.Forward;
            Duration = 60; // Default to 60, it is common so use it.
            NumberOfResults = 20; // Nice small default to use.
        }
    }
}
